package classexercise;

public class MyDate {

    private int year;
    private int month;
    private int day;
    private String[] strMonths={"Jan","Feb","Mar","Apr","May","Jun","jul","Aug","Sep","Oct","Nov","Dec"};
    private String[] strDays={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
    private int [] daysInMonths={31,28,31,30,31,30,31,31,30,31,30,31};
    
    public MyDate(int year ,int month,int day){
   	   this.year=year;
   	   this.month=month;
   	   this.day=day;
    }
    public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public int getDay() {
		return day;
	}
	public void setDay(int day) {
		this.day = day;
	}
	public boolean isLeapYear(int year){
   	       return year%4==0&&year%100!=0||year%400==0;
    }
    
   // public boolean isValidDate(int year,int month,int day){
    	
    //}
    ///public int getDayOfWeek(int year,int month,int day){
   	           
    //}

}
